#include <iostream>
#include <string>
using namespace std;

int main(){
	int input;
	cin>>input;
	
	int bnum = input/100;
	int snum = (input%100)/10;
	int num = (input%100)%10;
	
	string str = "";
	for(int a=0;a<bnum;a++){
		cout<<"B";
	}
	for(int a=0;a<snum;a++){
		cout<<"S";
	}
	for(int a=0;a<num;a++){
		cout<<a+1;
	}
	cout<<endl;
	return 0;
}
